package com.ceshi.util.Jenkins;

public class JobXml {

    /**
     * Job XML 信息
     */
    public static final String xml1 = "<?xml version='1.1' encoding='UTF-8'?>\n" +
            "<maven2-moduleset plugin=\"maven-plugin@3.4\">\n" +
            "  <actions/>\n" +
            "  <description></description>\n" +
            "  <keepDependencies>false</keepDependencies>\n" +
            "  <properties>\n" +
            "    <com.gitee.jenkins.connection.GiteeConnectionProperty plugin=\"gitee@1.1.12\">\n" +
            "      <giteeConnection></giteeConnection>\n" +
            "    </com.gitee.jenkins.connection.GiteeConnectionProperty>\n" +
            "  </properties>\n" +
            "  <scm class=\"hudson.plugins.git.GitSCM\" plugin=\"git@4.3.0\">\n" +
            "    <configVersion>2</configVersion>\n" +
            "    <userRemoteConfigs>\n" +
            "      <hudson.plugins.git.UserRemoteConfig>\n" +
            "        <url>";

    /**
     * Job XML 信息
     */
    public static final String xml2 = "</url>\n" +
            "        <credentialsId>10d5c727-e75c-45a3-8c02-1169da766744</credentialsId>\n" +
            "      </hudson.plugins.git.UserRemoteConfig>\n" +
            "    </userRemoteConfigs>\n" +
            "    <branches>\n" +
            "      <hudson.plugins.git.BranchSpec>\n" +
            "        <name>*/master</name>\n" +
            "      </hudson.plugins.git.BranchSpec>\n" +
            "    </branches>\n" +
            "    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>\n" +
            "    <submoduleCfg class=\"list\"/>\n" +
            "    <extensions/>\n" +
            "  </scm>\n" +
            "  <canRoam>true</canRoam>\n" +
            "  <disabled>false</disabled>\n" +
            "  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>\n" +
            "  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>\n" +
            "  <triggers/>\n" +
            "  <concurrentBuild>false</concurrentBuild>\n" +
            "  <rootModule>\n" +
            "    <groupId>org.example</groupId>\n" +
            "    <artifactId>";

    /**
     * Job XML 信息
     */
    public static final String xml3 = "</artifactId>\n" +
            "  </rootModule>\n" +
            "  <goals>";

    /**
     * Job XML 信息
     */
    public static final String xml4 = "</goals>\n" +
            "  <aggregatorStyleBuild>true</aggregatorStyleBuild>\n" +
            "  <incrementalBuild>false</incrementalBuild>\n" +
            "  <ignoreUpstremChanges>false</ignoreUpstremChanges>\n" +
            "  <ignoreUnsuccessfulUpstreams>false</ignoreUnsuccessfulUpstreams>\n" +
            "  <archivingDisabled>false</archivingDisabled>\n" +
            "  <siteArchivingDisabled>false</siteArchivingDisabled>\n" +
            "  <fingerprintingDisabled>false</fingerprintingDisabled>\n" +
            "  <resolveDependencies>false</resolveDependencies>\n" +
            "  <processPlugins>false</processPlugins>\n" +
            "  <mavenValidationLevel>-1</mavenValidationLevel>\n" +
            "  <runHeadless>false</runHeadless>\n" +
            "  <disableTriggerDownstreamProjects>false</disableTriggerDownstreamProjects>\n" +
            "  <blockTriggerWhenBuilding>true</blockTriggerWhenBuilding>\n" +
            "  <settings class=\"jenkins.mvn.FilePathSettingsProvider\">\n" +
            "    <path>/usr/local/maven/conf/settings.xml</path>\n" +
            "  </settings>\n" +
            "  <globalSettings class=\"jenkins.mvn.FilePathGlobalSettingsProvider\">\n" +
            "    <path>/usr/local/maven/conf/settings.xml</path>\n" +
            "  </globalSettings>\n" +
            "  <reporters/>\n" +
            "  <publishers/>\n" +
            "  <buildWrappers/>\n" +
            "  <prebuilders/>\n" +
            "  <postbuilders/>\n" +
            "  <runPostStepsIfResult>\n" +
            "    <name>FAILURE</name>\n" +
            "    <ordinal>2</ordinal>\n" +
            "    <color>RED</color>\n" +
            "    <completeBuild>true</completeBuild>\n" +
            "  </runPostStepsIfResult>\n" +
            "</maven2-moduleset>";

}
